package com.taobao.api.request;

import com.taobao.api.internal.util.RequestCheckUtils;
import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;

import com.taobao.api.response.OmniorderStoreSdtconsignResponse;

/**
 * TOP API: taobao.omniorder.store.sdtconsign request
 * 
 * @author top auto create
 * @since 1.0, 2018.07.25
 */
public class OmniorderStoreSdtconsignRequest extends BaseTaobaoRequest<OmniorderStoreSdtconsignResponse> {
	
	

	/** 
	* 取号接口返回的包裹id
	 */
	private String packageId;

	/** 
	* 发货标签号
	 */
	private String tagCode;

	public void setPackageId(String packageId) {
		this.packageId = packageId;
	}

	public String getPackageId() {
		return this.packageId;
	}

	public void setTagCode(String tagCode) {
		this.tagCode = tagCode;
	}

	public String getTagCode() {
		return this.tagCode;
	}

	public String getApiMethodName() {
		return "taobao.omniorder.store.sdtconsign";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("package_id", this.packageId);
		txtParams.put("tag_code", this.tagCode);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<OmniorderStoreSdtconsignResponse> getResponseClass() {
		return OmniorderStoreSdtconsignResponse.class;
	}

	public void check() throws ApiRuleException {
		RequestCheckUtils.checkNotEmpty(packageId, "packageId");
	}
	

}